@(elements: views.html.helper.FieldElements)

<div class="control-group @elements.args.get('_class) @if(elements.hasErrors) {error}" id="@elements.args.get('_id).getOrElse(elements.id + "_field")">
    <label class="control-label" for="@elements.id">@elements.label</label>
    <div class="controls">
        @elements.input
	@if( elements.hasErrors ) {
            <span class="help-inline">@elements.errors.mkString(", ")</span>
        } else {
            <span class="help-block">@elements.infos.mkString(", ")</span>
        }
    </div>
</div>
